import qs from 'qs';
import 'whatwg-fetch';
import request from '../utils/request';

const query = params =>
  request('/some/path', {
    method: 'post',
    body: qs.stringify(params),
  });

export { query };
export default { query };

